<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="">
<head>
    <meta charset="UTF-8">
    <title>注册成功</title>
    <style>
        body {
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: rgba(0, 0, 0, 0.5);
        }
        .success-modal {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            animation: slideIn 0.5s ease-out;
        }
        .checkmark {
            width: 80px;
            height: 80px;
            margin: 0 auto 1rem;
            position: relative;
        }
        .checkmark__circle {
            stroke-dasharray: 166;
            stroke-dashoffset: 166;
            stroke-width: 2;
            stroke-miterlimit: 10;
            stroke: #7f7fd5;
            fill: none;
            animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
        }
        .checkmark__check {
            transform-origin: 50% 50%;
            stroke-dasharray: 48;
            stroke-dashoffset: 48;
            stroke: #7f7fd5;
            stroke-width: 3;
            animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
        }
        .success-message {
            color: #4a4a4a;
            font-size: 1.5rem;
            margin: 1rem 0;
        }
        .login-link {
            color: #7f7fd5;
            text-decoration: none;
            font-size: 1.1rem;
            display: inline-block;
            margin-top: 1rem;
            transition: transform 0.2s;
        }
        .login-link:hover {
            transform: translateY(-2px);
        }
        @keyframes stroke {
            100% {
                stroke-dashoffset: 0;
            }
        }
        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
    </style>
</head>
<body>
    <div class="success-modal">
        <svg class="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52">
            <circle class="checkmark__circle" cx="26" cy="26" r="25" fill="none"/>
            <path class="checkmark__check" fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8"/>
        </svg>
        <div class="success-message">注册成功！</div>
        <a href="/login" class="login-link">立即登录</a>
    </div>
    <script>
        // 2秒后自动跳转到登录页面
        setTimeout(() => {
            window.location.href = '/login';
        }, 2000);
    </script>
</body>
</html> 